/*
 * Copyright [duowan.com]
 * Web Site: http://www.duowan.com
 * Since 2005 - 2014
 */

package com.duowan.realtime.service;

import com.duowan.realtime.model.ServerInfo;
import com.duowan.realtime.model.SqlJob;

import java.util.List;


/**
 * [SqlJob] 的业务操作
 * 
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */
public interface SqlJobService {

	/** 
	 * 创建SqlJob
	 **/
	public SqlJob create(SqlJob sqlJob);

	/** 
	 * 删除SqlJob
	 **/
    public void removeById(String sqlId);
    
	/** 
	 * 根据ID得到SqlJob
	 **/    
    public SqlJob getById(String sqlId);
    
    public void updateErrorMessage(String sqlId,String errorMessage);

    public List<SqlJob> getAllSqlJobs();
    
    public int update(SqlJob sqlJob);
}
